Optimal. Leaf size=80 \[ \frac{b n \text{PolyLog}\left (2,-\frac{d}{e x}\right )}{d^2}-\frac{\log \left (\frac{d}{e x}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}-\frac{e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac{b n \log (d+e x)}{d^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.159738, antiderivative size = 102, normalized size of antiderivative = 1.27, number of steps used = 7, number of rules used = 7, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {2347, 2344, 2301, 2317, 2391, 2314, 31} \[ -\frac{b n \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{d^2}-\frac{\log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}-\frac{e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac{\left (a+b \log \left (c x^n\right )\right )^2}{2 b d^2 n}+\frac{b n \log (d+e x)}{d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2347
Rule 2344
Rule 2301
Rule 2317
Rule 2391
Rule 2314
Rule 31
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{x (d+e x)^2} \, dx &=\frac{\int \frac{a+b \log \left (c x^n\right )}{x (d+e x)} \, dx}{d}-\frac{e \int \frac{a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx}{d}\\ &=-\frac{e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac{\int \frac{a+b \log \left (c x^n\right )}{x} \, dx}{d^2}-\frac{e \int \frac{a+b \log \left (c x^n\right )}{d+e x} \, dx}{d^2}+\frac{(b e n) \int \frac{1}{d+e x} \, dx}{d^2}\\ &=-\frac{e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac{\left (a+b \log \left (c x^n\right )\right )^2}{2 b d^2 n}+\frac{b n \log (d+e x)}{d^2}-\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{d^2}+\frac{(b n) \int \frac{\log \left (1+\frac{e x}{d}\right )}{x} \, dx}{d^2}\\ &=-\frac{e x \left (a+b \log \left (c x^n\right )\right )}{d^2 (d+e x)}+\frac{\left (a+b \log \left (c x^n\right )\right )^2}{2 b d^2 n}+\frac{b n \log (d+e x)}{d^2}-\frac{\left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{d^2}-\frac{b n \text{Li}_2\left (-\frac{e x}{d}\right )}{d^2}\\ \end{align*}
Mathematica [A] time = 0.0783692, size = 96, normalized size = 1.2 \[ \frac{-2 b n \text{PolyLog}\left (2,-\frac{e x}{d}\right )-2 \log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )+\frac{2 d \left (a+b \log \left (c x^n\right )\right )}{d+e x}+\frac{\left (a+b \log \left (c x^n\right )\right )^2}{b n}-2 b n (\log (x)-\log (d+e x))}{2 d^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.157, size = 521, normalized size = 6.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a{\left (\frac{1}{d e x + d^{2}} - \frac{\log \left (e x + d\right )}{d^{2}} + \frac{\log \left (x\right )}{d^{2}}\right )} + b \int \frac{\log \left (c\right ) + \log \left (x^{n}\right )}{e^{2} x^{3} + 2 \, d e x^{2} + d^{2} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b \log \left (c x^{n}\right ) + a}{e^{2} x^{3} + 2 \, d e x^{2} + d^{2} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \log{\left (c x^{n} \right )}}{x \left (d + e x\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{b \log \left (c x^{n}\right ) + a}{{\left (e x + d\right )}^{2} x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]